package com.sofwin.service.impl.contents;

import com.sofwin.mapper.CManagerMapper;
import com.sofwin.pojo.CManager;
import com.sofwin.pojo.CManagerExample;
import com.sofwin.service.contents.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Project: ssm-parent
 * @Description: TODO
 * @Author : abiao
 * @date Date : 2021年04月26日 下午 6:42
 */
@Service
public class ManagerServiceImpl implements ManagerService {

    @Autowired
    private CManagerMapper managerMapper;

    @Override
    public List<CManager> selectManagerDesc(Integer id) {
        CManagerExample example = new CManagerExample();
        CManagerExample.Criteria criteria = example.createCriteria();
        criteria.andIdEqualTo(id);
        return managerMapper.selectByExampleWithBLOBs(example);
    }
}
